#[cfg(test)]
mod tests {
    use super::*;
    #[test]
    fn test_shadowing() {
        const BUFFER_SIZE: usize = 10;

        let mut buffer = [0; BUFFER_SIZE];
        let expected_buffer = [10, 6, 12, 18, 24, 30, 36, 42, 48, 54];

        unsafe {
            shadow(BUFFER_SIZE as u32, buffer.as_mut_ptr());
        }
        
        assert_eq!(buffer, expected_buffer);
    }
}